﻿<Window x:Class="DBaseTestHarness.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="800" Width="1000" Icon="/DBaseTestHarness;component/.NET%20DBase.ico" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid Background="White">
        <TextBox Height="22" HorizontalAlignment="Left" Margin="10,10,0,0" Name="database_tb" VerticalAlignment="Top" Width="800" FontFamily="Tahoma" />
        <Button Content="Open DB" Height="22" HorizontalAlignment="Left" Margin="850,10,0,0" Name="openDB_bt" VerticalAlignment="Top" Width="100" Click="openDB_bt_Click" Background="#00000000" FontFamily="Tahoma" />
        <GroupBox Header="Database Info" Height="114" HorizontalAlignment="Left" Margin="12,40,0,0" Name="databaseIng" VerticalAlignment="Top" Width="800">
            <Grid>
                <Label Content="Number of Records:" Height="22" HorizontalAlignment="Left" Margin="10,10,0,0" Name="numOfRecords_Label" VerticalAlignment="Top" Width="210" FontFamily="Tahoma" />
                <Label Content="Number of  Valid Records:" Height="22" HorizontalAlignment="Left" Margin="220,10,0,0" Name="numOfValidRecords_Label" VerticalAlignment="Top" Width="210" FontFamily="Tahoma" />
                <Label Content="Number of Fields:" Height="22" HorizontalAlignment="Left" Margin="10,35,0,0" Name="numOfFields_Label" VerticalAlignment="Top" Width="210" FontFamily="Tahoma" />
                <Label Content="Number of Empty fields:" Height="22" HorizontalAlignment="Left" Margin="220,35,0,0" Name="numOfEmptyFields_Label" VerticalAlignment="Top" Width="210" FontFamily="Tahoma" />
                <Label Content="Is Data Encrypted:" Height="22" HorizontalAlignment="Left" Margin="10,60,0,0" Name="isDataEncrypted_Label" VerticalAlignment="Top" Width="210" FontFamily="Tahoma" />
            </Grid>
        </GroupBox>
        <Button Content="Extract Data" Height="22" HorizontalAlignment="Left" Margin="850,50,0,0" Name="extract_bt" VerticalAlignment="Top" Width="100" Background="#00000000" Click="extract_bt_Click" />
        <Button Content="Exit" Height="22" HorizontalAlignment="Left" Margin="850,80,0,0" Name="exit_bt" VerticalAlignment="Top" Width="100" Background="#00000000" Click="exit_bt_Click" />
        <TabControl Height="600" HorizontalAlignment="Left" Margin="0,180,0,0" Name="tabControl1" VerticalAlignment="Top" Width="1000" Background="WhiteSmoke">
            <TabItem Header="Field Info" Name="tabItem_fieldInfo" Background="#FF053C78" Foreground="White">
                <Grid DataContext="{Binding}">
                    <DataGrid AutoGenerateColumns="False" Height="500" HorizontalAlignment="Left" Margin="25,25,0,0" Name="dataGrid_fieldInfo" VerticalAlignment="Top" Width="925" Background="WhiteSmoke">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding}" Header="Field Info" />
                        </DataGrid.Columns>
                    </DataGrid>
                </Grid>
            </TabItem>
            <TabItem Header="Field Data " Name="tabItem_fieldData" Background="#FF053C78" Foreground="White">
                <Canvas>
                    <Label Content="Column No." Height="25" Name="label_ColumnNo" Width="80" Margin="10,10" />
                    <Label Content="Record No." Height="25" Name="label_RecordNo" Width="80" Margin="10,35" />
                    <TextBox Height="25" Name="textBox_ColumnNo" Width="50" Margin="90,10"/>
                    <TextBox Height="25" Name="textBox_RecordNo" Width="50" Margin="90,35"/>
                    <Button Content="Get Data" Height="30" Name="button_GetData" Width="100" Margin="150,20" Click="button_GetData_Click">
                        <Button.Background>
                            <SolidColorBrush />
                        </Button.Background>
                    </Button>
                    <Label Content="Field Type: " Height="25" Name="label_FieldType" Width="300" Margin="300,10"/>
                    <Label Content="Field Data: " Height="25" Name="label_FieldData" Width="300" Margin="300,45"/>

                    <Label Content="Find Data" Height="25" Name="label_FindData" Width="80" Margin="10,105" />
                    <TextBox Height="25" Name="textBox_FindData" Width="200" Margin="90,105"/>
                    <Button Content="Find Data" Height="30" Name="button_FindData" Width="100" Margin="300,100" Click="button_FindData_Click">
                        <Button.Background>
                            <SolidColorBrush />
                        </Button.Background>
                    </Button>
                    <Label Content="Data Found (Occurances): " Height="25" Name="label_DataFound" Width="300" Margin="420,105"/>
                    <Button Content="Find PostCodes" Height="30" Name="button_FindPostCode" Width="100" Margin="300,150" Click="button_FindPostCodes_Click">
                        <Button.Background>
                            <SolidColorBrush />
                        </Button.Background>
                    </Button>
                    <Label Content="Data Found (Occurances): " Height="25" Name="label_PostCodesFound" Width="300" Margin="420,155"/>
                    <Label Content="Reg Exp" Height="25" Name="label_RegExp" Width="80" Margin="10,205" />
                    <TextBox Height="25" Name="textBox_RegExp" Width="200" Margin="90,205"/>
                    <Button Content="Find Data" Height="30" Name="button_RegExpData" Width="100" Margin="300,200" Click="button_ExpRegData_Click">
                        <Button.Background>
                            <SolidColorBrush />
                        </Button.Background>
                    </Button>
                    <Label Content="Data Found (Occurances): " Height="25" Name="label_RegExpFound" Width="300" Margin="420,205"/>
                </Canvas>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
